﻿namespace ConsoleApp.观察者
{
    // 订阅用户A

    internal class ObserverUserA : IObserver
    {
        public string Name
        {
            get; set;
        }

        public ObserverUserA(string name)
        {
            this.Name = name;
        }

        public void ReceiveMilk(IMilkStation subject)
        {
            Console.WriteLine(this.Name + "：我收到了，订阅的牛奶");

            Console.WriteLine(this.Name + "看一下剩余奶站剩余牛奶数量：" + subject.MilkCount);
        }
    }
}